<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title></title>
<#include "/admin/head.html"/>
<script type="text/javascript">
$(function() {
	$("#jvForm").validate();
});
</script>
 

</script>

</head>
<body>

<div class="box-positon">
	<div class="rpos">当前位置:  信息管理 - 编辑</div>
	<form class="ropt">
		<input type="button" value="返回列表" onclick="history.back();"/>
	</form>
	<div class="clear"></div>
</div>
<div class="body-box">
<form method="post" action="o_tinfoSave.do" id="jvForm" enctype="multipart/form-data">
<table width="100%" class="pn-ftable" cellpadding="2" cellspacing="1" 	border="0">
   <input type="hidden" name="infoid" id="infoid" value="${tinfo.infoid!?html}"/>
<tr>
		<td width="12%" class="pn-flabel pn-flabel-h">     标题:
     </td>
		<td colspan="1" width="38%" class="pn-fcontent"> <input type="text" name="title"  id="title" maxlength="100" size="40"
 class="" value="${tinfo.title!?html}" /></td>
	 <#if (type>999)>
		 <td width="12%" class="pn-flabel pn-flabel-h">     分类:
	     </td>
			<td colspan="1" width="38%" class="pn-fcontent">
				<select  name="type" class="required">
	              <option value=>--请选择--</option>
	               <#list wgMap?keys as idKey>
	              <option value="${idKey}" <#if idKey==tinfo.type!?string> selected</#if> > ${wgMap[idKey]}</option>
	               </#list>
	              </select>
			</td>
	<#else>
		<input type="hidden" name="type" value="${type}"/>
	</#if>
       </tr>   
<tr>
		<td width="12%" class="pn-flabel pn-flabel-h">     内容:
     </td>
		<td colspan="3" width="38%" class="pn-fcontent" > 
		
		<script type="text/javascript">
var txt = new FCKeditor("content");
txt.BasePath = "/thirdparty/fckeditor/";
txt.Config["CustomConfigurationsPath"]="/thirdparty/fckeditor/myconfig.js";

txt.Config["LinkBrowser"] = false ;
txt.Config["ImageBrowser"] = false ;
txt.Config["FlashBrowser"] = false ;
txt.Config["MediaBrowser"] = false ;

txt.Config["LinkBrowserURL"] = "/thirdparty/fckeditor/editor/filemanager/browser/default/browser.html?Connector=/admin/xy/fck/connector.do" ;
txt.Config["ImageBrowserURL"] = "/thirdparty/fckeditor/editor/filemanager/browser/default/browser.html?Type=Image&Connector=/admin/xy/fck/connector.do" ;
txt.Config["FlashBrowserURL"] = "/thirdparty/fckeditor/editor/filemanager/browser/default/browser.html?Type=Flash&Connector=/admin/xy/fck/connector.do" ;
txt.Config["MediaBrowserURL"] = "/thirdparty/fckeditor/editor/filemanager/browser/default/browser.html?Type=Media&Connector=/admin/xy/fck/connector.do" ;

txt.Config["LinkUpload"] = true ;
txt.Config["ImageUpload"] = true ;
txt.Config["FlashUpload"] = true ;
txt.Config["MediaUpload"] = true ;

txt.Config["LinkUploadURL"] = "/admin/xy/fck/upload.do" ;
txt.Config["ImageUploadURL"] = "/admin/xy/fck/upload.do?Type=Image" ;
txt.Config["FlashUploadURL"] = "/admin/xy/fck/upload.do?Type=Flash" ;
txt.Config["MediaUploadURL"] = "/admin/xy/fck/upload.do?Type=Media" ;

txt.ToolbarSet="My";
txt.Height=600;
txt.Value="${tinfo.content!?js_string}";
txt.Create();
</script>
		
		</td>
       </tr>   
<tr>
		<td width="12%" class="pn-flabel pn-flabel-h">     发布时间:
     </td>
		<td colspan="1" width="38%" class="pn-fcontent"> <input type="text" name="createtime"  id="createtime" maxlength="100" size="24"
 class="Wdate" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" value="${tinfo.createtime?string('yyyy-MM-dd')}" /></td>
       </tr>   
       <#if (type<=999)>
       <tr>
		<td width="12%" class="pn-flabel pn-flabel-h">     图片:
     </td>
		<td colspan="1" width="38%" class="pn-fcontent"> 
			<input type="file" name="picfile" />
		</td>
       </tr>   
       </#if>   
	<tr>
		<td colspan="2" class="pn-fbutton"><input type="submit"  
			value="提交" /> &nbsp; <input type="reset" value="重置" /></td>
	</tr>
</table>
</form>
</div>
</body>
</html>